{"version":3,"file":"create_table.map.js","names":["BX","namespace","Landing","UI","Button","CreateTable","id","options","EditorAction","apply","this","arguments","editPanel","prototype","constructor","__proto__","onClick","event","preventDefault","stopPropagation","defaultColorTextRgb","defaultColorTextHex","divTableContainer","contextDocument","createElement","classList","add","tableElement","setAttribute","trElementFirst","trElement","thElementDnd","divAddRowHere","divLineX","divRowDnd","appendChild","tdElement","width","getCellWidth","style","color","thDndElement","divColumnDnd","divColumnResize","divAddColHere","divLineY","thElementFirst","divTechIconElement","cloneNode","i","node","execCommand","innerHTML","newTable","getElementById","thTech","querySelector","firstChild","remove","setThDnd","querySelectorAll","forEach","thDnd","setTrDnd","trDnd","removeAttribute","Block","Node","Text","currentNode","onChange","STANDART_CELL_WIDTH","BRAKEPOINT_DINAMIC_CELL","TECHNIC_WIDTH","DEFAULT_AMOUNT_CELL","cellWidth","textNodeWidth","getBoundingClientRect","Math","floor"],"sources":["create_table.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,wBAEbD,GAAGE,QAAQC,GAAGC,OAAOC,YAAc,SAASC,EAAIC,GAE/CP,GAAGE,QAAQC,GAAGC,OAAOI,aAAaC,MAAMC,KAAMC,WAC9CD,KAAKE,UAAY,KACjBF,KAAKH,QAAUA,EACfG,KAAKJ,GAAKA,CACX,EAEAN,GAAGE,QAAQC,GAAGC,OAAOC,YAAYQ,UAAY,CAC5CC,YAAad,GAAGE,QAAQC,GAAGC,OAAOC,YAClCU,UAAWf,GAAGE,QAAQC,GAAGC,OAAOI,aAAaK,UAE7CG,QAAS,SAASC,GAEjBA,EAAMC,iBACND,EAAME,kBACN,IAAIC,EAAsB,kBAC1B,IAAIC,EAAsB,UAC1B,IAAIC,EAAoBZ,KAAKa,gBAAgBC,cAAc,OAC3DF,EAAkBG,UAAUC,IAAI,2BAChC,IAAIC,EAAejB,KAAKa,gBAAgBC,cAAc,SACtDG,EAAaF,UAAUC,IAAI,gBAAiB,yBAC5CC,EAAaC,aAAa,aAAcP,GACxC,I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